<template>
  <div>
    <van-swipe :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(image,index) in images" :key='index'>
        <img v-lazy='image' style="height:260px;overflow:hidden;">
      </van-swipe-item>
    </van-swipe>
  </div>

</template>

<script>
export default {
  name: 'Swiper',
  data(){
    return {
      images:[
        './static/img/h.png',
        './static/img/h.png',
        './static/img/h.png'
      ]
    }
  }
}
</script>

<style scoped>
  /* 轮播图 */
  .van-swipe{
    height: 200px;
  }
  .van-swipe-item{
    background: #1989FA;
  }
</style>
